#!usr/bin/python
# -*- coding:utf-8 -*-
# Copyright 2020 labsight
import os
import platform
class Main:
    def __init__(self,sett):
        self.sett = sett

    def run(self):
        self.sett.log.info("hello setup!")
        self.setup();

    def setup(self):
        base = os.path.dirname(os.path.realpath(__file__))
        edyos = platform.uname()[0]
        if edyos.lower() == 'linux':
            pass
        elif edyos.lower() == 'windows':
            with open("c:/windows/hitock.bat", 'w+') as fh:
                fh.write("title hitock\n")
                fh.write("python3 %s\\hitock.py %s\n" % (base, "%*"))
            print("setup c:/windows/hitock.bat")
        return True